<?php

class Registermodel extends CI_Model
{
  public function __construct()
   {
     $this->load->database();
   }
  
	public function create_new_accout()
	{
	  $this->load->helper('url');
	  
//	  $slug = url_title($this->input->post('title'), 'dash', TRUE);
	  $data = array(
	    'acc'   => $this->input->post('accout'),
	    'pwd'   => $this->input->post('password'),
	    'email' => $this->input->post('email')
	  );
	  
	  return $this->db->insert('account', $data);
	}
}
